package com.itheima.mapper;

import com.itheima.pojo.Singer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SingerMapper {
    /*
        查询所有
     */
    List<Singer> selectAll();
    /*
        查询ID
     */
    Singer selectById(int id);
    /*
        条件查询
     */
    List<Singer> selectByConditions(Singer singer);
    List<Singer> selectByCondition(Singer singer);

    /*
    添加
     */
    int add(Singer singer);

    /*
    修改
     */
    void update(Singer singer);
    /*
    删除
     */
    void deleteById(int id);
    void deleteByIds(@Param("ids")int [] ids);
}
